package com.hq.zb.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.hq.zb.model.UserMenu;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户菜单关系表 Mapper 接口
 * </p>
 *
 * @author huanghanrui
 * @since 2022-03-07
 */
@Mapper
public interface UserMenuMapper extends BaseMapper<UserMenu> {


    /**
     * 删除用户菜单
     * @param userMenu
     */
    void deleteUserMenu(UserMenu userMenu);

    /**
     * 查询菜单ID集合
     * @param userId
     * @return
     */
    List<Integer> queryMenuIds(@Param("userId") Integer userId);
}
